package com.guojian.sso.config;

import javax.crypto.SecretKey;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.springframework.boot.web.servlet.ServletContextInitializer;

import cn.hutool.crypto.SecureUtil;

//import org.springframework.web.WebApplicationInitializer;

public class FilterConfig implements ServletContextInitializer {

	@Override
	public void onStartup(ServletContext servletContext) throws ServletException {
		System.out.println("============FilterConfig==========");
		// servletContext.addFilter("sessionFilter", SessionFilter.class);
		// servletContext.addServlet(servletName, servletClass)
	}

	public static void main(String[] args) {
		SecretKey key = SecureUtil.generateKey("RSA");
		System.out.println(key);
	}

}
